using Engine;


delegate void TestDelegate(int a,int cc);

namespace ConsoleApplication1
{

    class B 
    {

        void BTest(int a,int b)
        {
            int c=a+b;
            RConsole.PrintLine(c.ToString());
        }

        void CTest(int a,int b)
        {
            int c=a-b;
            RConsole.PrintLine(c.ToString());
        }

        void DTest(int a,int b)
        {
            int c=a*b;
            RConsole.PrintLine(c.ToString());
        }

    }

    class Program 
    {
        static void Test()
        {
            
            B b = new B();
            TestDelegate Delegate1 = new TestDelegate(b.BTest);
            TestDelegate Delegate2 = new TestDelegate(b.CTest);
            Delegate1 += Delegate2;
            Delegate1 += b.DTest;
            Delegate1(2,6);

            Delegate1-=b.CTest;
            Delegate1(2,6);
            
        }

    }
}